FROM centos:centos7.9.2009


#ADD https://download.redis.io/releases/redis-6.2.0.tar.gz  /server/

RUN  whoami
RUN groupadd -r -g 1000 redis && useradd -r -u1000 -g redis redis  && chown redis:redis /server2
USER redis
RUN  whoami
COPY  --chown=1000:1000 ./redis-6.2.0.tar.gz  /server2/

RUN ls -l  /server2
RUN tar xf /server2/redis-6.2.0.tar.gz
RUN ls -l  /server2


CMD sleep 5; echo sucess
